<?php

class IndexController extends BaseController
{
	public function index()
	{
		$userId = intval( $_GET['uId'] );
		$this->setUser( $userId );
		$user = UserModel::getInstance( $this->userId , false);
		echo $user->getWater();
	}
	public function addUser( $data = array() )
	{
		if ( empty( $data ) )
		{
			$data = $_POST;
		}
		$userId = UserModel::addUser( array( 'name' => $data['name']) );
		echo $userId;
	}
}
?>